<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<rich:panel header="#{messages['terminate.log.menu']}">
	<h:panelGrid ><h:outputText value="#{errorBean.errorMessage}" styleClass="error"></h:outputText></h:panelGrid>
	<rich:dataTable id="data" var="terminateLog" value="#{adminTerminateLogBean.terminateLogList}" rows="20" width="99%">

		<rich:column style="text-align:center;width:15%;">
			<f:facet name="header">
				<h:outputText value="#{messages['terminated.date.column']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{terminateLog.takenDate}">
				<f:convertDateTime pattern="dd/MM/yyyy hh:mm:ss" timeZone="Asia/Kuala_Lumpur"/>
			</h:outputText>
		</rich:column>

		<rich:column style="text-align:center;width:15%;">
			<f:facet name="header">
				<h:outputText value="#{messages['terminate.type.column']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{terminateLog.terminateType}">
			</h:outputText>
		</rich:column>
		
		<rich:column style="text-align:center;width:30%;">
			<f:facet name="header">
				<h:outputText value="#{messages['terminate.desc.column']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{terminateLog.terminateDesc}">
			</h:outputText>
		</rich:column>
		
		<rich:column style="text-align:center;width:40%;">
			<f:facet name="header">
				<h:outputText value="#{messages['terminate.acctinfo.column']}"></h:outputText>
			</f:facet>
			<h:outputText value="#{terminateLog.terminateAcctInfo}">
			</h:outputText>
		</rich:column>

	</rich:dataTable>
	
	<rich:spacer height="30" />
	
	<rich:datascroller align="left"  for="data" maxPages="20" />


            
</rich:panel>
